<?php
/**
 * Ecshop 2.7.2
 *
 * @desc system field mapping of client class method
 * @since 14:11 2011/07/15
 */

defined('SYNC_CLIENT_ROOT') || die('Access denied !');

return array(
    'getCategories' => array(
        'table'				=> 'category',
        'cat_id'			=> 'cat_id',
        'cat_name'			=> 'cat_name',
        'keywords'			=> 'keywords',
        'cat_desc'			=> 'cat_desc',
        'parent_id'			=> 'parent_id',
        'sort_order'		=> 'sort_order'
    ),

    'getParentCategories' => array(
        'table'				=> 'category',
        'id'				=> 'cat_id',
		'parent_id'			=> 'parent_id',
        'name'				=> 'cat_name'
    ),

    'getBrandList' => array(
        'table'				=> 'brand',
        'id'				=> 'brand_id',
        'name'				=> 'brand_name'
    ),

    'get_categories_by_id' => array(),

    'get_child_list' => array(
        'table'				=> 'category',
        'cat_id'			=> 'cat_id',
        'cat_name'			=> 'cat_name',
        'cat_desc'			=> 'cat_desc',
        'cat_keyword'		=> 'keywords',
        'parent_id'			=> 'parent_id',
        'sort_id'			=> 'sort_order'
    ),

    'getProductByCategory' => array(
        'table'				=> 'goods',
        'product_id'		=> 'goods_id',
        'category_id'		=> 'cat_id',
        'brand_id'			=> 'brand_id',
        'product_sn'		=> 'goods_sn',
        'product_name'		=> 'goods_name',
        'product_quantity'	=> 'goods_number',
        'product_weight'	=> 'goods_weight',
        'market_price'		=> 'market_price',
        'store_price'		=> 'shop_price',
        'product_text'		=> 'goods_brief',
        'product_html'		=> 'goods_desc',
        'seo_keywords'		=> 'keywords',
		'seo_description'	=> NULL,
		'sale_status'		=> 'is_on_sale',
		'is_hot'			=> 'is_hot'
    ),

    'getProductGalleris' => array(
        'table'				=> 'goods_gallery',
        'attachment_id'		=> 'img_id',
        'img_path'			=> 'img_original',
        'product_id'		=> 'goods_id'
    ),

	'statistics' => array(),

	'getProductAttrs' => array(),

	'receiveOrders' => array()
);
?>